package cn.hpclub.server.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

import cn.hpclub.server.model.Broadband;

public class BdOpenAcctService{
    private static final Logger     logger  = LoggerFactory.getLogger(BdOpenAcctService.class);
    public static BdOpenAcctService service = new BdOpenAcctService();

    /**
     * @Title: getDetailByType
     * @Description:TODO
     * @param id
     * @param bd_type
     * @return Broadband
     */
    public Broadband getDetailByType(String id, String bd_type){

        return Broadband.dao.getDetails(id, bd_type);
    }

    /**
     * @Title: getListByType
     * @Description:TODO
     * @param pageNumber
     * @param pageSize
     * @param orgId
     * @param bd_type
     * @return Page<Record>
     */
    public Page<Record> getListByType(int pageNumber, int pageSize, int orgId, String type){

        return Broadband.dao.getOpenAcctListByType(pageNumber, pageSize, orgId, type);
    }
}
